import React from 'react'
import { Button } from 'antd-mobile'
import './nopage.css'

class Nopage extends React.Component {

  componentDidMount() {
    console.log(this.props)
  }

  goHome = () => {
    this.props.history.replace('/')
  }

  render() {
    return (
      <div className="_nopage">
        <div className="text" style={{ fontSize: '.5rem' }}>页面不存在</div>
        <Button type="primary" style={{ width: '2.5rem', marginTop: '.2rem' }} onClick={ this.goHome }>返回首页</Button>
      </div>
    )
  }

}

export default Nopage